package com.shh.aiojbackendserver.demo;

import dev.langchain4j.community.model.dashscope.QwenChatModel;
import dev.langchain4j.model.chat.ChatLanguageModel;

public class LangChainAIinvoke {
    public static void main(String[] args) {
        ChatLanguageModel qwenChatModel =  QwenChatModel.builder()
                .apiKey("sk-a11b828e499a4ec1b21f5ae00112d3ce")
                .modelName("qwen-max")
                .build();
        String answer = qwenChatModel.chat("我是嗜好");
        System.out.println(answer);

    }
}
